﻿using Common.Communication;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Device.Interfaces
{
    public interface IFct3 : IDevice
    {
        /// <summary>
        /// 读取继电器
        /// </summary>
        /// <param name="index">通道</param>
        /// <returns></returns>
        Result<bool> GetJdq(int index);
        /// <summary>
        /// 设置继电器
        /// </summary>
        /// <param name="closeChannelsn">所有闭合</param>
        /// <param name="openChannels">所有断开</param>
        /// <returns></returns>
        Result<bool> SetJdq(List<int> closeChannelsn, List<int> openChannels);
        /// <summary>
        /// 读取电平
        /// </summary>
        /// <param name="index">通道</param>
        /// <returns></returns>
        Result<bool> GetDp(int index);

    }
}
